<style>
    .apply_sale_tab{
        margin: 10px 5%;
        width: 90%;
        text-align: center;
    }
    .caption_tr{
        border-bottom: 1px solid #ccc;
    }
    .info_line{
        border-bottom: 1px solid #eeeeec;
    }
    .sale_input{
        height: 16px;
        width:52px;
    }
    .button_div{
        width: 100%;
    }
    .apply-confirm{
        margin-left:45% ;
    }
    .sheneh_info{
        margin-left: 10px;
        margin-top:10px;
        text-align: center;
    }
    .no_info{
        text-align: center;
        margin: 10px 0;
    }
</style>
<div class="apply_sale">
    <{if !$no_info}>
        <{if $is_apply}>
        <div class="sheneh_info">您的优惠申请已提交</div>
        <{/if}>
        <table class="apply_sale_tab">
            <tr class="caption_tr">
                <td>花型编号</td>
                <td>销售价</td>
                <td>默认折扣</td>
                <td>期望折扣</td>
                <{if $is_apply}>
                <td>审核状态</td>
                <{/if}>
            </tr>
            <{foreach from=$madan_info key=key item=item}>
                <{foreach from=$item key=k name=foo item=info}>
                        <tr>
                            <{if $smarty.foreach.foo.first}>
                                <td rowspan="<{$info.count}>"><{$info.productId}></td>
                            <{/if}>
                            <td><{$info.price|cur_odr}></td>
                            <td><{$info.zhe}>折</td>
                            <{ if $info.is_apply }>
                                <td><{$info.exp_zhe}>折</td>
                                <td><{$info.status}></td>
                            <{else}>
                                <td><input type="text" value="<{$info.zhe}>" class="sale_input" name="exp_zhe[]">折</td>
                            <{/if}>
                            <td><input type="hidden" value="<{$info.item_id}>" name="apply_sale[item_id][]"></td>
                            <td><input type="hidden" value="<{$info.goods_id}>" name="apply_sale[goods_id][]"></td>
                            <td><input type="hidden" value="<{$info.type_id}>" name="apply_sale[type_id][]"></td>
                            <td><input type="hidden" value="<{$info.bn}>" name="apply_sale[bn][]"></td>
                            <td><input type="hidden" value="<{$info.name}>" name="apply_sale[name][]"></td>
                            <td><input type="hidden" value="<{$info.order_id}>" name="apply_sale[order_id][]"></td>
                            <td><input type="hidden" value="<{$info.productId}>" name="apply_sale[product_id][]"></td>
                            <td><input type="hidden" value="<{$info.madanId}>" name="apply_sale[madanId][]"></td>
                            <td><input type="hidden" value="<{$info.cnt}>" name="apply_sale[cnt][]"></td>
                            <td><input type="hidden" value="<{$info.rollNo}>" name="apply_sale[rollNo][]"></td>
                            <td><input type="hidden" value="<{$info.unit}>" name="apply_sale[unit][]"></td>
                            <td><input type="hidden" value="<{$info.zhe}>" name="apply_sale[zhe][]"></td>
                            <td><input type="hidden" value="<{$info.price}>" name="apply_sale[price][]"></td>
                        </tr>
                    <{/foreach}>
                <tr>
                    <td colspan="<{if $is_apply}>5<{else}>4<{/if}>" class="info_line"></td>
                </tr>
            <{/foreach}>
        </table>
        <{if !$is_apply}>
        <div class="button_div">
            <{button type="button" class="btn-caution apply-confirm" label="确认申请"}>
        </div>
        <{/if}>
    <{else}>
        <div class="no_info">
            该订单未发现折扣信息！
        </div>
    <{/if}>
</div>
